package myproj1;

public class School {
	public static void main(String[] args) {
        // 创建电脑
        Computer comp1 = new Computer("Dell", "XPS 15", "Intel i7", 16);
        Computer comp2 = new Computer("Apple", "MacBook Pro", "M1", 8);
        Computer comp3 = new Computer("HP", "Pavilion", "AMD Ryzen 5", 16);

        // 创建学生并分配电脑
        Student student1 = new Student("Alice", comp1);
        Student student2 = new Student("Bob", comp2);
        Student student3 = new Student("Charlie", comp3);

        // 输出学生及其使用的电脑配置
        student1.displayComputerConfig();
        student2.displayComputerConfig();
        student3.displayComputerConfig();
    }
}
